package com.xafc.demo.framework.execption;


import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * ResponseStatus 会使用默认的错误处理机制sendError处理，
 * SpringBoot会跳转到 /templates/error/HttpStatus.FORBIDDEN.ftl 页面处理错误消息
 */
@ResponseStatus(code=HttpStatus.FORBIDDEN, reason="你没有权限")
public class AccessDenyException extends RuntimeException {

}
